package a.h;

import javax.swing.*;
import java.awt.*;

final class ab
  implements Icon
{
  private Color a;
  private final int c;
  private final int e;
  
  ab(Color paramColor)
  {
    this(10, 10, paramColor);
  }
  
  ab(int paramInt1, int paramInt2, Color paramColor)
  {
    this.e = paramInt1;
    this.c = paramInt2;
    a(paramColor);
  }
  
  public int getIconHeight()
  {
    return this.c;
  }
  
  public int getIconWidth()
  {
    return this.e;
  }
  
  public void paintIcon(Component paramComponent, Graphics paramGraphics, int paramInt1, int paramInt2)
  {
    if (this.a != null)
    {
      paramGraphics.setColor(Color.WHITE);
      paramGraphics.fillRect(paramInt1 + 1, paramInt2 + 1, this.e - 1, this.c - 1);
      paramGraphics.setColor(this.a);
      paramGraphics.fillRect(paramInt1 + 1, paramInt2 + 1, this.e - 1, this.c - 1);
      if (ec.t != 0) {
        return;
      }
      if (!ec.s) {}
    }
    else
    {
      paramGraphics.setColor(paramComponent.getBackground());
      paramGraphics.fillRect(paramInt1 + 1, paramInt2 + 1, this.e - 1, this.c - 1);
      paramGraphics.setColor(paramComponent.getForeground().brighter());
      paramGraphics.drawLine(paramInt1 + 1, paramInt2 + 1, paramInt1 + this.e - 1, paramInt2 + this.e - 1);
      paramGraphics.drawLine(paramInt1 + this.e - 1, paramInt2 + 1, paramInt1 + 1, paramInt2 + this.e - 1);
    }
    paramGraphics.setColor(paramComponent.getForeground());
    paramGraphics.drawRect(paramInt1, paramInt2, this.e, this.c);
  }
  
  public Color a()
  {
    return this.a;
  }
  
  public void a(Color paramColor)
  {
    this.a = paramColor;
  }
  
  public String toString()
  {
    return bc.a(a(), true);
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.ab

 * JD-Core Version:    0.7.0.1

 */